/*
 * @Descripttion: 
 * @version: 
 * @Author: kl2018
 * @Date: 2020-04-16 09:06:09
 * @LastEditors: kl2018
 * @LastEditTime: 2020-06-22 11:14:13
 */
import React, { Component } from 'react';
import OdocWithdraw from './index'

/**
 * 流程撤回组件
 */
export default class Test extends Component {
	constructor(props) {
		super(props);
		this.state = {
			visible: false,
			height: 750,
		}
	}

	render() {
		return (
			<div>
				<OdocWithdraw requestid={10059057}><button onClick="">{"非管理员测试"}</button></OdocWithdraw>
				{/*<OdocManagerWithdraw requestid={10059057}><button onClick="">管理员测试</button></OdocManagerWithdraw>*/}

			</div>
		);
	}
	onCancel = () => {
		this.setState({ visible: false });
		const { cancelBack } = this.props;
		cancelBack && typeof cancelBack == "function" && (cancelBack({ cancel: false }))
	}
}